using System;
using System.Configuration;

namespace Lync.Widget.Library.Configuration
{
    public class ActiveDirectoryGroupMemberElement : ConfigurationElement, IActiveDirectoryGroupMember
    {
        [ConfigurationProperty("sip", IsRequired = true, IsKey = true)]
        public string Sip
        {
            get
            {
                return this["sip"] as string;
            }
            set
            {
                this["sip"] = value;
            }
        }

        [ConfigurationProperty("priority", IsRequired = true)]
        public int Priority
        {
            get { return Convert.ToInt32(this["priority"]); }
            set
            {
                this["priority"] = value;
            }
        }
    }
}